package com.sgb.kjwl.model.entity.transport;


import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * 地图车辆信息
 */
public class MapCarEntity {

    @SerializedName(value = "shipDistrictNo", alternate = {"districtNo"})
    private String shipDistrictNo;
    @SerializedName(value = "shipDistrictName", alternate = {"districtName"})
    private String shipDistrictName;
    @SerializedName(value = "shipProvinceNo", alternate = {"provinceNo"})
    private String shipProvinceNo;
    @SerializedName(value = "shipProvinceName", alternate = {"provinceName"})
    private String shipProvinceName;
    @SerializedName(value = "shipCityNo", alternate = {"cityNo"})
    private String shipCityNo;
    @SerializedName(value = "shipCityName", alternate = {"cityName"})
    private String shipCityName;
    @SerializedName(value = "carrierNo", alternate = {"no"})
    private String carrierNo;

    private String carLenName;
    private String carNumber;
    private String carTypeName;
    private String destCityName;
    private String destDistrictName;
    private String destProvinceName;
    private double distance;
    private int id;
    private int isCarrierBusiness;//是否有承运商机 0没有 1有
    @SerializedName(value = "latitude", alternate = {"lat"})
    private double latitude;
    @SerializedName(value = "longitude", alternate = {"lng"})
    private double longitude;
    private String name;
    private String userNo;
    private String telephone;
    private UserVoBean userVo;
    private double weight;
    private double freight;//报价
    private String heightHurdle;//栏高
    private Integer isDump;//是否自卸 1 是 0 否
    private Object imContact;//消息数据
    private String freightUnit;

    //头像对应的名字
    private String roleName;
    //头像
    private String img;
    //1：企业 / 2：团队 / 3:个人
    private Integer terminal;
    //运费意向 是否商议 1商议 0未勾选
    private Integer discuss;
    //公里数
    private Double kilometre;

    public void setFreightUnit(String freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getFreightUnit() {
        if (TextUtils.isEmpty(freightUnit))
            return "元/吨";
        //1：元/趟，2：元/吨，3：元/方
        if (freightUnit.equals("1"))
            return "元/趟";
        if (freightUnit.equals("2"))
            return "元/吨";
        if (freightUnit.equals("3"))
            return "元/方";
        return "";
    }

    public String getShipDistrictNo() {
        return shipDistrictNo;
    }

    public void setShipDistrictNo(String shipDistrictNo) {
        this.shipDistrictNo = shipDistrictNo;
    }

    public String getShipProvinceNo() {
        return shipProvinceNo;
    }

    public void setShipProvinceNo(String shipProvinceNo) {
        this.shipProvinceNo = shipProvinceNo;
    }

    public String getShipCityNo() {
        return shipCityNo;
    }

    public void setShipCityNo(String shipCityNo) {
        this.shipCityNo = shipCityNo;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getTerminal() {
        return terminal;
    }

    public void setTerminal(Integer terminal) {
        this.terminal = terminal;
    }

    public Integer getDiscuss() {
        return discuss;
    }

    public void setDiscuss(Integer discuss) {
        this.discuss = discuss;
    }

    public Double getKilometre() {
        return kilometre;
    }

    public void setKilometre(Double kilometre) {
        this.kilometre = kilometre;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarrierNo() {
        return carrierNo;
    }

    public void setCarrierNo(String carrierNo) {
        this.carrierNo = carrierNo;
    }

    public String getShipCityName() {
        return shipCityName;
    }

    public void setShipCityName(String shipCityName) {
        this.shipCityName = shipCityName;
    }

    public String getShipDistrictName() {
        return shipDistrictName;
    }

    public void setShipDistrictName(String shipDistrictName) {
        this.shipDistrictName = shipDistrictName;
    }

    public String getShipProvinceName() {
        return shipProvinceName;
    }

    public void setShipProvinceName(String shipProvinceName) {
        this.shipProvinceName = shipProvinceName;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsCarrierBusiness() {
        return isCarrierBusiness;
    }

    public void setIsCarrierBusiness(int isCarrierBusiness) {
        this.isCarrierBusiness = isCarrierBusiness;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public UserVoBean getUserVo() {
        return userVo;
    }

    public void setUserVo(UserVoBean userVo) {
        this.userVo = userVo;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getFreight() {
        return freight;
    }

    public void setFreight(double freight) {
        this.freight = freight;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public Integer getIsDump() {
        return isDump;
    }

    public void setIsDump(Integer isDump) {
        this.isDump = isDump;
    }

    public Object getImContact() {
        return null;
    }

    public void setImContact(Object imContact) {
        this.imContact = imContact;
    }

    public static class UserVoBean {
        /**
         * companyName :
         * id : 0
         * identityCard :
         * imAccount :
         * imToken :
         * no :
         * realName :
         * telPhone :
         * type : 0
         * username :
         */

        private String companyName;
        private int id;
        private String identityCard;
        private String imAccount;
        private String imToken;
        private String no;
        private String realName;
        private String telPhone;
        private int type;
        private String username;

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIdentityCard() {
            return identityCard;
        }

        public void setIdentityCard(String identityCard) {
            this.identityCard = identityCard;
        }

        public String getImAccount() {
            return imAccount;
        }

        public void setImAccount(String imAccount) {
            this.imAccount = imAccount;
        }

        public String getImToken() {
            return imToken;
        }

        public void setImToken(String imToken) {
            this.imToken = imToken;
        }

        public String getNo() {
            return no;
        }

        public void setNo(String no) {
            this.no = no;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getTelPhone() {
            return telPhone;
        }

        public void setTelPhone(String telPhone) {
            this.telPhone = telPhone;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }
    }
}
